<?php
/*
 * @Author: your name
 * @Date: 2021-12-07 09:50:02
 * @LastEditTime: 2022-01-10 00:00:27
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \property\app\Http\Controllers\find_shop\User.php
 */

namespace App\Http\Controllers\find_shop;

// use Illuminate\Support\Facades\Request;
use  App\Http\Controllers\redis\RedisController as Redis ;
// use  App\Models\admin_model\TowerBuilding as TowerBuildingDB;
use App\Models\admin_model\FindShopSettngs as      FindShopSettngsDb     ;

class Settings extends BaseController
{
    private $redisKey = 'find_shop_settings';
    public function settingSelOne(){
       if(Redis::existSKey($this->redisKey)){
            $res =  Redis::redishGetAll($this->redisKey);
       }else{
            $res = FindShopSettngsDb::selOne()[0];
            Redis::hMset($this->redisKey,$res);
       } 
       return $this->create(200,'查询成功',$res);
    }
}
